package org.jeecg.modules.wo.people.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 人员管理
 * @Author: jeecg-boot
 * @Date:   2022-03-22
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="WoPeopleIm", description="人员导入实体")
public class WoPeopleIm implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**人员编码*/
    @ApiModelProperty(value = "人员编码")
    private String perCode;

    /**姓名*/
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String perName;
    /**性别*/
    @Excel(name = "性别", width = 15,dicCode = "sex")
    @ApiModelProperty(value = "性别")
    @Dict(dicCode = "sex")
    private String perSex;
    /**年龄*/
    @Excel(name = "年龄", width = 15)
    @ApiModelProperty(value = "年龄")
    private String perAge;
    /**电话*/
    @Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private String perTel;
    /**出生日期*/
    @Excel(name = "出生日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出生日期")
    private Date perDatebirth;
    /**身份证号*/
    @Excel(name = "身份证号", width = 15)
    @ApiModelProperty(value = "身份证号")
    private String perIdcard;
    /**居住地址*/
    @Excel(name = "居住地址", width = 15)
    @ApiModelProperty(value = "居住地址")
    private String perAddress;
    /**抗疫情编码*/
    @Excel(name = "抗疫情编码", width = 15)
    @ApiModelProperty(value = "抗疫情编码")
    private String perNucleiccode;
    /**照片*/
    @ApiModelProperty(value = "照片")
    private String perPhoto;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;
    /**检查时间*/
    @Excel(name = "检测时间", width = 15, format = "yyyy-MM-dd  HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd  HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd  HH:mm:ss")
    @ApiModelProperty(value = "检测时间")
    private Date nucleicDate;
    /**检查地点*/
    @Excel(name = "检查地点", width = 15)
    @ApiModelProperty(value = "检查地点")
    private String nucleicAddress;
    /**检查结果*/
    @Excel(name = "检测结果", width = 15)
    @ApiModelProperty(value = "检测结果")
    @Dict(dicCode = "d_nu_status")
    private String nucleicResult;
    /**国籍*/
    @Excel(name = "国籍", width = 15,dicCode = "psn_nationality")
    @ApiModelProperty(value = "国籍")
    @Dict(dicCode = "psn_nationality")
    private java.lang.String nationality;
    @ApiModelProperty(value = "basePeopleId")
    private java.lang.String basePeopleId;
    @Excel(name = "分组编码", width = 15,dictTable = "wo_person_type",dicCode = "id",dicText = "type_code")
    @ApiModelProperty(value = "分组编码")
    @Dict(dictTable = "wo_person_type",dicCode = "id",dicText = "type_code")
    private String psnTypeId;
}
